package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TExamWorkUserMapper;
import com.ruoyi.system.domain.TExamWorkUser;
import com.ruoyi.system.service.ITExamWorkUserService;
import com.ruoyi.common.core.text.Convert;

/**
 * 考试工作人员Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-02
 */
@Service
public class TExamWorkUserServiceImpl implements ITExamWorkUserService 
{
    @Autowired
    private TExamWorkUserMapper tExamWorkUserMapper;

    /**
     * 查询考试工作人员
     * 
     * @param id 考试工作人员ID
     * @return 考试工作人员
     */
    @Override
    public TExamWorkUser selectTExamWorkUserById(Long id)
    {
        return tExamWorkUserMapper.selectTExamWorkUserById(id);
    }

    /**
     * 查询考试工作人员列表
     * 
     * @param tExamWorkUser 考试工作人员
     * @return 考试工作人员
     */
    @Override
    public List<TExamWorkUser> selectTExamWorkUserList(TExamWorkUser tExamWorkUser)
    {
        return tExamWorkUserMapper.selectTExamWorkUserList(tExamWorkUser);
    }

    /**
     * 新增考试工作人员
     * 
     * @param tExamWorkUser 考试工作人员
     * @return 结果
     */
    @Override
    public int insertTExamWorkUser(TExamWorkUser tExamWorkUser)
    {
        return tExamWorkUserMapper.insertTExamWorkUser(tExamWorkUser);
    }

    /**
     * 修改考试工作人员
     * 
     * @param tExamWorkUser 考试工作人员
     * @return 结果
     */
    @Override
    public int updateTExamWorkUser(TExamWorkUser tExamWorkUser)
    {
        return tExamWorkUserMapper.updateTExamWorkUser(tExamWorkUser);
    }

    /**
     * 删除考试工作人员对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteTExamWorkUserByIds(String ids)
    {
        return tExamWorkUserMapper.deleteTExamWorkUserByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除考试工作人员信息
     * 
     * @param id 考试工作人员ID
     * @return 结果
     */
    @Override
    public int deleteTExamWorkUserById(Long id)
    {
        return tExamWorkUserMapper.deleteTExamWorkUserById(id);
    }
}
